/* Home Page Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.home-container {
  min-height: 100vh;
  width: 100%;
  max-width: 100vw;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
  position: relative;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* Header Styles */
.header {
  background-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  width: 100%;
  margin: 0;
  padding: 0;
}

.header-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

/* Logo Styles */
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
  width: 32px;
  height: 32px;
}

.logo-square {
  width: 100%;
  height: 100%;
  border-radius: 4px;
}

.logo-square.red { background-color: #ff6b6b; }
.logo-square.green { background-color: #51cf66; }
.logo-square.blue { background-color: #339af0; }
.logo-square.yellow { background-color: #ffd43b; }

.logo-text {
  font-size: 24px;
  font-weight: bold;
  color: #333;
  font-family: 'Microsoft YaHei', sans-serif;
}

/* Navigation Links */
.nav-links {
  display: flex;
  gap: 30px;
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: #333;
  font-size: 16px;
  font-weight: 500;
  padding: 8px 0;
  position: relative;
  transition: color 0.3s ease;
  cursor: pointer;
}

.nav-link:hover {
  color: #e74c3c;
}

.nav-link.active {
  color: #e74c3c;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #e74c3c;
  border-radius: 1px;
}

/* Menu Toggle */
.menu-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background-color 0.3s ease;
  position: relative;
}

.menu-toggle:hover {
  background-color: #e9ecef;
}

.hamburger {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hamburger span {
  width: 20px;
  height: 2px;
  background-color: #333;
  border-radius: 1px;
}

.menu-text {
  font-size: 14px;
  color: #333;
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  min-width: 160px;
  z-index: 1000;
  overflow: hidden;
  margin-top: 8px;
  animation: fadeInDown 0.3s ease;
}

.dropdown-item {
  display: block;
  padding: 12px 16px;
  color: #333;
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.2s ease;
  border-bottom: 1px solid #f0f0f0;
}

.dropdown-item:last-child {
  border-bottom: none;
}

.dropdown-item:hover {
  background-color: #f8f9fa;
  color: #667eea;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Video Banner Section */
.video-banner-section {
  width: 100%;
  height: 680px;
  position: relative;
  overflow: hidden;
  background: #fff;
}

.video-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.banner-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Video Overlay */
.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(0, 0, 0, 0.4) 0%,
    rgba(0, 0, 0, 0.2) 50%,
    rgba(0, 0, 0, 0.6) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.overlay-content {
  text-align: center;
  color: white;
  animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.overlay-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 15px;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
  animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
  from {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5), 0 0 20px rgba(255, 255, 255, 0.3);
  }
  to {
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5), 0 0 30px rgba(255, 255, 255, 0.6);
  }
}

.overlay-subtitle {
  font-size: 24px;
  margin-bottom: 30px;
  opacity: 0.9;
  font-weight: 300;
}

.overlay-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 15px 40px;
  font-size: 18px;
  font-weight: bold;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
  animation: buttonPulse 2s ease-in-out infinite;
}

@keyframes buttonPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6);
  }
}

.overlay-button:hover {
  transform: scale(1.1);
  box-shadow: 0 15px 40px rgba(102, 126, 234, 0.7);
}

/* Promotional Banner */
.promo-banner {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.7) 0%, rgba(118, 75, 162, 0.7) 100%);
  color: white;
  padding: 15px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  z-index: 999;
  overflow: hidden;
  width: 100%;
  margin: 0;
}

.banner-content {
  text-align: center;
  font-size: 16px;
  font-weight: 500;
  max-width: 800px;
  padding: 0 60px;
  line-height: 1.5;
  animation: fadeIn 0.5s ease-in-out;
}

.banner-arrow {
  background: none;
  border: none;
  color: white;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  padding: 8px 15px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
}

.banner-arrow:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.banner-arrow.left {
  left: 20px;
}

.banner-arrow.right {
  right: 20px;
}

/* Video Section Styles */
.video-section {
  padding: 60px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 500px;
}

.video-container {
  perspective: 1000px;
  transform-style: preserve-3d;
}

.video-screen {
  width: 400px;
  height: 600px;
  background: #1a1a1a;
  border-radius: 20px;
  padding: 30px;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1);
  transform: rotateX(15deg) rotateY(-5deg);
  transition: transform 0.3s ease;
  position: relative;
  overflow: hidden;
}

.video-screen:hover {
  transform: rotateX(10deg) rotateY(-2deg) scale(1.02);
}

.video-screen::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.video-header {
  margin-bottom: 30px;
}

.video-title {
  color: #ffffff;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 8px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.video-subtitle {
  color: #cccccc;
  font-size: 16px;
  opacity: 0.8;
}

.lesson-list {
  flex: 1;
  margin-bottom: 30px;
}

.lesson-item {
  color: #ffffff;
  font-size: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
  opacity: 0.7;
  transform: translateX(-10px);
}

.lesson-item.active {
  opacity: 1;
  transform: translateX(0);
  color: #ffd700;
  font-weight: bold;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from { text-shadow: 0 0 10px rgba(255, 215, 0, 0.5); }
  to { text-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 0 0 30px rgba(255, 215, 0, 0.6); }
}

.progress-bar {
  position: relative;
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  margin-bottom: 20px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ffd700, #ffed4e);
  border-radius: 4px;
  width: 0%;
  animation: progress 8s linear infinite;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

@keyframes progress {
  0% { width: 0%; }
  100% { width: 100%; }
}

.progress-dots {
  position: absolute;
  top: -4px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  padding: 0 4px;
}

.progress-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.progress-dot.active {
  background: #ffd700;
  box-shadow: 0 0 8px rgba(255, 215, 0, 0.8);
  transform: scale(1.2);
}

.video-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.play-button {
  background: #ffd700;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 215, 0, 0.3);
}

.play-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(255, 215, 0, 0.5);
}

.video-time {
  color: #cccccc;
  font-size: 14px;
  font-family: 'Courier New', monospace;
}

/* Main Content */
.main-content {
  flex: 1;
  padding: 40px 20px;
  width: 100%;
  margin: 0;
}

.content-wrapper {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  text-align: center;
  overflow-x: hidden;
}

.content-wrapper h1 {
  font-size: 36px;
  color: #333;
  margin-bottom: 20px;
  font-weight: bold;
}

.content-wrapper p {
  font-size: 18px;
  color: #666;
  line-height: 1.6;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Product Cards Styles */
.product-cards {
  display: flex;
  gap: 30px;
  align-items: center;
  flex: 1;
  justify-content: center;
  margin: 0 60px;
  max-width: 100%;
  height: 400px;
  overflow-x: hidden;
  overflow-y: hidden;
}

.product-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  width: 280px;
  text-align: center;
  position: relative;
  max-height: 400px;
  overflow: hidden;
}

.product-card.active {
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(33, 150, 243, 0.3);
}

.product-image {
  margin-bottom: 15px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
}

.product-info {
  text-align: center;
}

.product-title {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin-bottom: 8px;
  font-family: 'Microsoft YaHei', sans-serif;
}

.product-description {
  font-size: 14px;
  color: #666;
  margin-bottom: 12px;
  line-height: 1.4;
}

.product-price {
  font-size: 16px;
  font-weight: bold;
  color: #e74c3c;
  margin: 0;
}

/* Responsive Design */
/* 平板端适配 */
@media (min-width: 768px) and (max-width: 1023px) {
  .header-content {
    padding: 0 20px;
    height: 65px;
  }

  .logo-text {
    font-size: 22px;
  }

  .nav-links {
    gap: 20px;
  }

  .nav-link {
    font-size: 15px;
  }

  .video-banner-section {
    height: 500px;
    margin-top: 110px;
  }

  .overlay-title {
    font-size: 40px;
  }

  .overlay-subtitle {
    font-size: 20px;
  }

  .overlay-button {
    padding: 14px 35px;
    font-size: 17px;
  }

  .banner-content {
    font-size: 15px;
    padding: 0 55px;
  }

  .product-cards {
    gap: 25px;
    margin: 0 50px;
  }

  .product-card {
    width: 250px;
    padding: 18px;
  }

  .product-image {
    height: 180px;
  }

  .product-title {
    font-size: 17px;
  }

  .product-description {
    font-size: 13px;
  }

  .product-price {
    font-size: 15px;
  }

  .content-wrapper h1 {
    font-size: 32px;
  }

  .content-wrapper p {
    font-size: 17px;
  }

  .section-header {
    padding: 0 50px;
    margin-bottom: 35px;
  }

  .section-title {
    font-size: 28px;
  }

  .view-all {
    font-size: 15px;
  }

  .courses-container {
    padding: 0 50px;
    gap: 25px;
  }

  .course-card {
    min-width: 280px;
  }

  .course-image {
    height: 180px;
  }

  .course-info {
    padding: 18px;
  }

  .course-title {
    font-size: 17px;
  }

  .course-description {
    font-size: 13px;
  }

  .course-price {
    font-size: 18px;
  }

  .enroll-btn {
    padding: 7px 18px;
    font-size: 13px;
  }
}

/* 移动端适配 */
@media (max-width: 768px) {
  .header-content {
    padding: 0 15px;
    height: 60px;
  }

  .nav-links {
    display: none;
  }

  .logo-text {
    font-size: 20px;
  }

  .video-banner-section {
    height: 300px;
    margin-top: 100px; /* 小屏幕调整间距 */
  }

  .overlay-title {
    font-size: 32px;
  }

  .overlay-subtitle {
    font-size: 18px;
  }

  .overlay-button {
    padding: 12px 30px;
    font-size: 16px;
  }

  .banner-content {
    font-size: 14px;
    padding: 0 50px;
  }

  .banner-arrow {
    padding: 6px 12px;
    font-size: 16px;
  }

  .video-screen {
    width: 320px;
    height: 480px;
    padding: 20px;
  }

  .video-title {
    font-size: 20px;
  }

  .lesson-item {
    font-size: 12px;
  }

  .product-cards {
    gap: 20px;
    margin: 0 40px;
  }
  
  .product-card {
    width: 220px;
    padding: 15px;
  }
  
  .product-image {
    height: 150px;
  }
  
  .product-title {
    font-size: 16px;
  }
  
  .product-description {
    font-size: 12px;
  }
  
  .product-price {
    font-size: 14px;
  }

  .content-wrapper h1 {
    font-size: 28px;
  }

  .content-wrapper p {
    font-size: 14px;
  }

  .section-header {
    padding: 0 20px;
    margin-bottom: 25px;
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .section-title {
    font-size: 20px;
  }

  .view-all {
    font-size: 13px;
  }

  .courses-container {
    padding: 0 20px;
    gap: 15px;
  }

  .course-card {
    min-width: 240px;
  }

  .course-image {
    height: 140px;
  }

  .course-info {
    padding: 12px;
  }

  .course-title {
    font-size: 14px;
  }

  .course-description {
    font-size: 11px;
  }

  .course-price {
    font-size: 14px;
  }

  .enroll-btn {
    padding: 5px 14px;
    font-size: 11px;
  }

  .product-cards {
    gap: 15px;
    margin: 0 20px;
    flex-direction: column;
    align-items: center;
  }

  .product-card {
    width: 200px;
    padding: 12px;
  }

  .product-image {
    height: 120px;
  }

  .product-title {
    font-size: 14px;
  }

  .product-description {
    font-size: 11px;
  }

  .product-price {
    font-size: 12px;
  }

  .tab-bar {
    padding: 6px 0;
  }

  .tab-icon {
    font-size: 16px;
  }

  .tab-label {
     font-size: 10px;
   }
}

/* Premium Courses Styles */
/* 精品课展示区域 */
.premium-courses {
  padding: 60px 20px;
  background: #f8f9fa;
  overflow-x: auto; /* 允许水平滚动 */
  scrollbar-width: none; /* 隐藏滚动条（Firefox） */
  -ms-overflow-style: none; /* 隐藏滚动条（IE/Edge） */
}

/* 隐藏 WebKit 浏览器的滚动条 */
.premium-courses::-webkit-scrollbar {
  display: none;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding: 0 20px;
}

.section-title {
  font-size: 24px;
  font-weight: bold;
  color: #333;
}

.view-all {
  color: #1890ff;
  text-decoration: none;
  font-size: 14px;
}

/* 修改 courses-container 为横向滚动 */
.courses-container {
  display: flex;
  gap: 20px;
  padding: 0 20px;
  overflow-x: auto; /* 允许水平滚动 */
  scrollbar-width: none; /* 隐藏滚动条（Firefox） */
  -ms-overflow-style: none; /* 隐藏滚动条（IE/Edge） */
}

/* 隐藏 WebKit 浏览器的滚动条 */
.courses-container::-webkit-scrollbar {
  display: none;
}

.course-card {
  min-width: 300px; /* 固定卡片宽度，防止挤压 */
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.course-tag {
  position: absolute;
  width: 40px;
  top: 10px;
  left: 10px;
  background: #ff4d4f;
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

.course-image {
  height: 180px;
  overflow: hidden;
}

.course-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.course-card:hover .course-image img {
  transform: scale(1.05);
}

.course-info {
  padding: 16px;
}

.course-title {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin-bottom: 8px;
}

.course-description {
  font-size: 14px;
  color: #666;
  margin-bottom: 12px;
  line-height: 1.4;
}

.course-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.course-price {
  font-size: 18px;
  font-weight: bold;
  color: #ff4d4f;
}

.enroll-btn {
  background: #1890ff;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.enroll-btn:hover {
  background: #40a9ff;
}

/* Main Content and Tab Bar Styles */
.main-content {
  flex: 1;
  padding: 20px;
  background: #f5f5f5;
}

.content-wrapper {
  text-align: center;
  padding: 60px 20px;
  width: 100%;
  overflow-x: hidden;
}

.content-wrapper h1 {
  font-size: 36px;
  color: #333;
  margin-bottom: 20px;
  font-weight: bold;
}

.content-wrapper p {
  font-size: 18px;
  color: #666;
  line-height: 1.6;
}

.tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: white;
  border-top: 1px solid #e0e0e0;
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
  z-index: 1000;
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 5px;
  cursor: pointer;
  transition: color 0.3s ease;
  color: #999;
}

.tab-item.active {
  color: #2196f3;
}

.tab-item.active .tab-icon {
  color: #2196f3;
}

.tab-item.active .tab-label {
  color: #2196f3;
  font-weight: 500;
}

.tab-icon {
  font-size: 20px;
  margin-bottom: 4px;
}

.tab-label {
  font-size: 12px;
  font-weight: 500;
}

/* Menu Styles */
.menu-text {
  color: #333;
  font-size: 16px;
  font-weight: 500;
}

.menu-item {
  padding: 12px 20px;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.3s ease;
}

.menu-item:hover {
  background: #f5f5f5;
}

.menu-item:last-child {
  border-bottom: none;
}

/* Arrow Styles */
.product-arrow,
.right {
  color: #2196f3;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.product-arrow:hover,
.right:hover {
  transform: translateX(5px);
}

@media (max-width: 480px) {
  .header-content {
    padding: 0 10px;
  }

  .logo-icon {
    width: 28px;
    height: 28px;
  }

  .logo-text {
    font-size: 18px;
  }

  .video-banner-section {
    height: 250px;
    margin-top: 90px; /* 更小屏幕调整间距 */
  }

  .overlay-title {
    font-size: 24px;
  }

  .overlay-subtitle {
    font-size: 14px;
  }

  .overlay-button {
    padding: 10px 25px;
    font-size: 14px;
  }

  .banner-content {
    font-size: 12px;
    padding: 0 40px;
  }

  .banner-arrow {
    padding: 4px 8px;
    font-size: 14px;
  }

  .video-screen {
    width: 280px;
    height: 420px;
    padding: 15px;
  }

  .video-title {
    font-size: 18px;
  }

  .lesson-item {
    font-size: 11px;
  }
} 

/* Product Showcase Styles */
.product-showcase {
  padding: 60px 0;
  height: 500px;
  background: #fff;
}

.product-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  position: relative;
  overflow-x: hidden;
}

.product-arrow {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: #f0f0f0;
  color: #666;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  z-index: 10;
  flex-shrink: 0;
}

.product-arrow:hover {
  background: #e0e0e0;
  color: #333;
}

/* iPad Pro 适配 */
@media (min-width: 768px) and (max-width: 1024px) {
  .home-container {
    width: 100%;
    overflow-x: hidden;
  }
  
  .content-wrapper {
    max-width: 100%;
    padding: 0 20px;
    overflow-x: hidden;
  }
  
  .product-container {
    max-width: 100%;
    padding: 0 20px;
    overflow-x: hidden;
  }
  
  .product-arrow {
    width: 45px;
    height: 45px;
    font-size: 16px;
    flex-shrink: 0;
    z-index: 10;
  }
  
  .product-cards {
    gap: 20px;
    margin: 0 30px;
    max-width: calc(100% - 120px);
    overflow-x: hidden;
    overflow-y: hidden;
  }
  
  .product-card {
    width: 220px;
    min-width: 220px;
    padding: 15px;
    flex-shrink: 0;
    max-height: 300px;
    overflow: hidden;
  }
  
  .product-image {
    height: 160px;
  }
  
  .product-title {
    font-size: 16px;
  }
  
  .product-description {
    font-size: 12px;
  }
  
  .product-price {
    font-size: 14px;
  }
}

/* 手机端横向排列，一次只显示一个 */
@media (max-width: 768px) {
  .product-container {
    padding: 0 15px;
  }
  
  .product-arrow {
    width: 40px;
    height: 40px;
    font-size: 16px;
    flex-shrink: 0;
  }
  
  .product-cards {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    gap: 0;
    margin: 0 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
  }
  
  .product-cards::-webkit-scrollbar {
    display: none;
  }
  
  .product-card {
    width: 280px;
    min-width: 280px;
    flex-shrink: 0;
    scroll-snap-align: center;
    margin: 0 10px;
    max-height: 350px;
    overflow: hidden;
  }
  
  .product-image {
    height: 180px;
  }
  
  .product-title {
    font-size: 16px;
  }
  
  .product-description {
    font-size: 13px;
  }
  
  .product-price {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .product-container {
    padding: 0 10px;
  }
  
  .product-arrow {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }
  
  .product-cards {
    margin: 0 15px;
    overflow-y: hidden;
  }
  
  .product-card {
    width: 240px;
    min-width: 240px;
    padding: 15px;
    max-height: 320px;
    overflow: hidden;
  }
  
  .product-image {
    height: 150px;
  }
  
  .product-title {
    font-size: 15px;
  }
  
  .product-description {
    font-size: 12px;
  }
  
  .product-price {
    font-size: 14px;
  }
}

/* 底部TabBar样式 */
/* 底部TabBar样式 */
.tab-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background-color: white;
  display: flex;
  justify-content: space-around;
  align-items: center;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
  cursor: pointer;
  flex: 1;
  color: #666;
  transition: all 0.3s ease;
}

.tab-icon {
  font-size: 20px;
  margin-bottom: 4px;
  transition: all 0.3s ease;
}

.tab-label {
  font-size: 12px;
  transition: all 0.3s ease;
}

/* 激活状态样式 - 统一蓝色主题 */
.tab-item.active {
  color: #2196f3;
}

.tab-item.active .tab-icon {
  color: #2196f3;
  transform: scale(1.1);
}

.tab-item.active .tab-label {
  color: #2196f3;
  font-weight: 500;
}

/* 点击效果 */
.tab-item:active {
  background-color: rgba(24, 144, 255, 0.1);
}

/* 平板横屏适配 */
@media (max-width: 1024px) and (min-width: 768px) and (orientation: landscape) {
  .tab-bar {
    height: 50px;
  }
  .tab-icon {
    font-size: 18px;
  }
  .tab-label {
    font-size: 11px;
  }
}

/* 抽屉菜单样式 */
/* 抽屉基础样式 */
.drawer-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  animation: fadeIn 0.3s ease;
}

/* 网页端抽屉 */
.desktop-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 40%;
  max-width: 400px;
  height: 100%;
  background-color: white;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  animation: slideIn 0.3s ease;
}

/* 平板端抽屉 - 全屏 */
/* 平板端抽屉 - iPad Pro全屏 */
.tablet-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  z-index: 2001;
  overflow-y: auto;
  animation: fadeIn 0.3s ease;
  padding: 20px;
  box-sizing: border-box;
}

/* 调整iPad Pro尺寸下的布局 */
@media (min-width: 768px) and (max-width: 1024px) {
  .tablet-drawer {
    padding: 30px;
  }
  
  .tablet-drawer .drawer-header {
    padding: 0 0 20px 0;
  }
  
  .tablet-drawer .menu-item {
    padding: 18px 0;
    font-size: 18px;
    border-bottom: 1px solid #f0f0f0;
  }
  
  .tablet-drawer .menu-divider {
    margin: 30px 0;
  }
  
  .tablet-drawer .drawer-footer {
    padding: 30px 0 0 0;
    flex-direction: row;
    gap: 20px;
  }
  
  .tablet-drawer .login-btn,
  .tablet-drawer .register-btn {
    flex: 1;
    padding: 15px;
    font-size: 18px;
  }
}

/* 确保内容区域填满高度 */
.tablet-drawer .drawer-content {
  height: calc(100% - 60px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* 手机端抽屉 - 全屏 */
.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  animation: fadeIn 0.3s ease;
}

/* 抽屉内容样式 */
.drawer-header {
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
}

.drawer-title {
  font-size: 18px;
  font-weight: bold;
}

.drawer-close {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #666;
}

.drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
}

.menu-section {
  margin-bottom: 20px;
}

.menu-item {
  padding: 15px 20px;
  font-size: 16px;
  color: #333;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.menu-item:hover {
  background-color: #f5f5f5;
}

.menu-divider {
  height: 1px;
  background-color: #eee;
  margin: 20px 0;
}

.drawer-footer {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.login-btn, .register-btn {
  padding: 12px;
  border-radius: 20px;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.login-btn {
  background-color: #f5f5f5;
  border: none;
}

.login-btn .btn-icon {
  margin-right: 8px;
}

.register-btn {
  background-color: transparent;
  border: 1px solid #006341;
  color: #006341;
}

.register-btn:hover {
  background-color: rgba(0, 99, 65, 0.1);
}

/* 动画 */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

/* 响应式调整 */
@media (max-width: 768px) {
  .tablet-drawer .drawer-content {
    padding: 15px;
  }
  
  .tablet-drawer .menu-item {
    padding: 15px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .mobile-drawer .drawer-content {
    padding: 10px;
  }
  
  .mobile-drawer .menu-item {
    padding: 12px;
    font-size: 15px;
  }
}

/* 精品课区域样式 */
.premium-courses {
  padding: 60px 20px;
  background-color: #f9f9f9;
  margin-top: 40px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  max-width: 1200px;
  margin: 0 auto 30px;
}

.section-title {
  font-size: 24px;
  color: #333;
  font-weight: bold;
  position: relative;
  padding-left: 15px;
  font-family: 'Microsoft YaHei', sans-serif;
}

.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 20px;
  background-color: #1890ff;
  border-radius: 2px;
}

.view-all {
  color: #666;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.3s;
}

.view-all:hover {
  color: #1890ff;
}

.courses-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.course-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  position: relative;
  width: 360px;
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.course-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: #ff4d4f;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  z-index: 1;
}

.course-image {
  height: 200px;
  overflow: hidden;
}

.course-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s;
}

.course-card:hover .course-image img {
  transform: scale(1.05);
}

.course-info {
  padding: 20px;
}

.course-title {
  font-size: 18px;
  color: #333;
  margin-bottom: 10px;
  font-weight: bold;
  font-family: 'Microsoft YaHei', sans-serif;
}

.course-description {
  font-size: 14px;
  color: #666;
  margin-bottom: 15px;
  line-height: 1.5;
}

.course-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.course-price {
  font-size: 16px;
  color: #ff4d4f;
  font-weight: bold;
}

.enroll-btn {
  background-color: #1890ff;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.enroll-btn:hover {
  background-color: #40a9ff;
}

/* iPad Pro 横向排列样式 */
@media (min-width: 768px) and (max-width: 1024px) {
  .courses-container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 20px;
    padding: 0 20px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  .courses-container::-webkit-scrollbar {
    display: none;
  }
  
  .course-card {
    min-width: 300px;
    flex-shrink: 0;
  }
  
  .course-image {
    height: 180px;
  }
  
  .course-info {
    padding: 15px;
  }
  
  .course-title {
    font-size: 16px;
  }
  
  .course-description {
    font-size: 13px;
  }
  
  .enroll-btn {
    padding: 6px 12px;
    font-size: 13px;
  }
}

/* 响应式调整 */
@media (max-width: 1024px) {
  .course-card {
    width: 300px;
  }
}

@media (max-width: 768px) {
  .premium-courses {
    padding: 40px 15px;
  }
  
  .course-card {
    width: 100%;
    max-width: 350px;
  }
  
  .course-image {
    height: 180px;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 20px;
  }
  
  .course-title {
    font-size: 16px;
  }
  
  .course-description {
    font-size: 13px;
  }
  
  .enroll-btn {
    padding: 6px 12px;
    font-size: 13px;
  }
}

.product-card.active {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  /* border: 2px solid #1890ff; */
}

.product-card.active .product-title {
  color: #1890ff;
}

.product-card.active .product-price {
  color: #ff4d4f;
  font-weight: bold;
}